#!/bin/bash

set -eux # -x for verbose logging to juju debug-log

# relevant web links.


##############################
# INSTALL SYSTEM DEPENDENCIES
#############################
juju-log "III Installing ftpd via apt-get"

apt-get -y install vsftpd

# WGET OTHER PACKAGES
# md5sum -c X.md5
# TODO verify the md5 is actually ok.

mkdir -p /var/ftp/users
mkdir -p /var/ftp/roles

useradd -m test1
useradd -m test2
useradd -m test3
